<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>富文本框</title>
		<style type="text/css">
			.body {
				width: 800px;
				margin: 0 auto 0 auto;
			}
		</style>
	</head>

	<body>
		<div class="body">
			<div id="div1">
				<p>欢迎使用 <b>linEditor</b> 富文本编辑器</p>
			</div> 
		</div>

		<button id="save">保存</button>

		<script type="text/javascript">
            var Feng = {
                ctxPath: "${ctxPath}",
                version: '${constants.getReleaseVersion()}'
            };
		</script>

		<!-- 引用js -->
		<script type="text/javascript" src="${ctxPath}/assets/common/libs/layui/layui.js?v=${constants.getReleaseVersion()}"></script>
		<script type="text/javascript" src="${ctxPath}/assets/common/js/common.js?v=${constants.getReleaseVersion()}"></script>

			<script type="text/javascript" src="${ctxPath}/assets/common/libs/fuwenben/wan/wangEditor.js"></script>
			<script type="text/javascript" src="${ctxPath}/assets/common/libs/fuwenben/wan/jquery.js"></script>
			<script type="text/javascript">
				$(function() {
					var E = window.wangEditor
					var editor = new E('#div1')
					editor.customConfig.uploadImgShowBase64 = true
					editor.create();
					
			       
					$("#save").click(function(){
                        alert(editor.txt.html())
						var data=editor.txt.html();
                         window.location.href="/mySchedule/saveFuWenBen?data="+data;
/*                        $.get({
                            url:"/mySchedule/saveFuWenBen?data=123",
							success:function (data) {
                                alert("保存成功！")

                            }
                        });*/


					})
				});
				
			</script>
	</body>

</html>